﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="studentScore.aspx.cs" Inherits="学生成绩查询及选课系统.teacher.studentScore" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>学生成绩查询及选课系统</title>
        <meta name="renderer" content="webkit|ie-comp|ie-stand"/>
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
        <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
        <meta http-equiv="Cache-Control" content="no-siteapp" />
        <link rel="stylesheet" href="../css/font.css"/>
        <link rel="stylesheet" href="../css/xadmin.css"/>
        <link href="./StyleSheet1.css" rel="stylesheet" />
        <!-- <link rel="stylesheet" href="./css/theme5.css"> -->
        <script src="../lib/layui/layui.js" charset="utf-8"></script>
        <script type="text/javascript" src="../js/xadmin.js"></script>
</head>
<body>
     <div class="layui-card-body ">
            <form id="form1" runat="server">
                <br />
                <label><span class="x-red">*</span >学生学号:</label> 
                <div class="layui-input-inline" ><asp:TextBox ID="txt_stuno" runat="server" CssClass="layui-input" Width="150px" Height="20px" ></asp:TextBox></div>
        &nbsp;
                <div class="layui-inline layui-show-xs-block"><asp:Button ID="btn_stuno" runat="server" OnClick="btn_stuno_Click" Text="查找"  CssClass="layui-btn" Height="24px" Width="71px" /></div>
        &nbsp;&nbsp;
                <asp:Label ID="Label1" runat="server"></asp:Label>
                <br />
                <br />
               <label><span class="x-red">*</span >课程号:</label>&nbsp;&nbsp;&nbsp; 
               <div class="layui-input-inline" > <asp:TextBox ID="txt_cno" runat="server" CssClass="layui-input" Width="150px" Height="20px" ></asp:TextBox></div>
        &nbsp;
                <div class="layui-inline layui-show-xs-block">
                    <asp:Button ID="btn_cno" runat="server" Text="查找" OnClick="btn_cno_Click" CssClass="layui-btn" Height="24px" Width="71px"  />
                    </div>
        &nbsp;&nbsp;
                <asp:Label ID="Label2" runat="server"></asp:Label>
                <br />
                <br />
                <asp:GridView ID="GridView1" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None" AutoGenerateColumns="False" 
                     ShowFooter="True" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowEditing="GridView1_RowEditing1" OnRowUpdating="GridView1_RowUpdating1" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" Height="202px" Width="441px" >
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:templatefield headertext="学号">                       
                            <itemtemplate>
                                <asp:label id="lblstuno" runat="server" text='<%#Eval("stuno") %>' />
                            </itemtemplate>                                 
                            <edititemtemplate>
                                <asp:textbox id="txtstuno" runat="server" text='<%#Eval("stuno") %>' readonly="true" />
                            </edititemtemplate>
                        </asp:templatefield>
                        <asp:templatefield headertext="课程号">                       
                            <itemtemplate>
                                <asp:label id="lblcno" runat="server" text='<%#Eval("cno") %>' />
                            </itemtemplate>                                 
                            <edititemtemplate>
                                <asp:textbox id="txtcno" runat="server" text='<%#Eval("cno") %>' readonly="true" />
                            </edititemtemplate>
                        </asp:templatefield>
                         <asp:templatefield headertext="分数">                       
                            <itemtemplate>
                                <asp:label id="lblscore" runat="server" text='<%#Eval("score") %>' />
                            </itemtemplate>                                 
                            <edititemtemplate>
                                <asp:textbox id="txtscore" runat="server" text='<%#Eval("score") %>' />
                            </edititemtemplate>
                        </asp:templatefield>
                         <asp:templatefield headertext="是否有效">                       
                            <itemtemplate>
                                <asp:label id="lblstatus" runat="server" text='<%#Eval("status") %>' />
                            </itemtemplate>                                 
                            <edititemtemplate>
                                <asp:textbox id="txtstatus" runat="server" text='<%#Eval("status") %>'  />
                            </edititemtemplate>
                        </asp:templatefield>

                        <asp:HyperLinkField DataNavigateUrlFields="stuno,cno" DataNavigateUrlFormatString="alterScore.aspx?stuno={0}&cno={1}" HeaderText="操作" Text="修改"  />

                    </Columns>
                    <EditRowStyle BackColor="#7C6F57" />
                    <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#E3EAEB" />
                    <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#F8FAFA" />
                    <SortedAscendingHeaderStyle BackColor="#246B61" />
                    <SortedDescendingCellStyle BackColor="#D4DFE1" />
                    <SortedDescendingHeaderStyle BackColor="#15524A" />
                </asp:GridView>
                <br />
            </form>
         </div>

</body>
</html>
